package com.igeekhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.igeekhome.anno.Id;
import com.igeekhome.anno.Name;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author Romeo
 */

public class DSpotDestination {
    @Id
    private Integer id;
    @Name
    private String name;

    private Integer parentNetworkId;

    private String detailedAddress;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8 ")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8 ")
    private Date updateTime;

    private String remarks;

    private Integer operator;

    private String destinationRegion;

    private String scopeService;

    private Integer status;

    private Integer operatorNetwork;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentNetworkId() {
        return parentNetworkId;
    }

    public void setParentNetworkId(Integer parentNetworkId) {
        this.parentNetworkId = parentNetworkId;
    }

    public String getDetailedAddress() {
        return detailedAddress;
    }

    public void setDetailedAddress(String detailedAddress) {
        this.detailedAddress = detailedAddress;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getOperator() {
        return operator;
    }

    public void setOperator(Integer operator) {
        this.operator = operator;
    }

    public String getDestinationRegion() {
        return destinationRegion;
    }

    public void setDestinationRegion(String destinationRegion) {
        this.destinationRegion = destinationRegion;
    }

    public String getScopeService() {
        return scopeService;
    }

    public void setScopeService(String scopeService) {
        this.scopeService = scopeService;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getOperatorNetwork() {
        return operatorNetwork;
    }

    public void setOperatorNetwork(Integer operatorNetwork) {
        this.operatorNetwork = operatorNetwork;
    }

    public DSpotDestination(Integer id, String name, Integer parentNetworkId, String detailedAddress, Date createTime, Date updateTime, String remarks, Integer operator, String destinationRegion, String scopeService, Integer status, Integer operatorNetwork) {
        this.id = id;
        this.name = name;
        this.parentNetworkId = parentNetworkId;
        this.detailedAddress = detailedAddress;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.remarks = remarks;
        this.operator = operator;
        this.destinationRegion = destinationRegion;
        this.scopeService = scopeService;
        this.status = status;
        this.operatorNetwork = operatorNetwork;
    }

    public DSpotDestination() {
    }

    @Override
    public String toString() {
        return "DSpotDestination{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", parentNetworkId=" + parentNetworkId +
                ", detailedAddress='" + detailedAddress + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", remarks='" + remarks + '\'' +
                ", operator=" + operator +
                ", destinationRegion='" + destinationRegion + '\'' +
                ", scopeService='" + scopeService + '\'' +
                ", status=" + status +
                ", operatorNetwork=" + operatorNetwork +
                '}';
    }
}